package cn.congzhou.crm.mapper;

import cn.congzhou.crm.domain.Role;
import cn.congzhou.crm.query.QueryObject;
import org.apache.ibatis.annotations.Param;

import java.util.List;

public interface RoleMapper {
    int deleteByPrimaryKey(Long id);

    int insert(Role record);

    Role selectByPrimaryKey(Long id);

    List<Role> selectAll();

    int updateByPrimaryKey(Role record);

    Integer queryRows(QueryObject qo);

    List<Role> selectByPage(QueryObject qo);

    void deleteRelation(Long roleId);

    void insertRelation(@Param("roleId") Long roleId, @Param("perId") Long perId);


    List<String> selectRoleByEmpId(Long empId);

    List<String> selectExpressionsByEmpId(Long empId);
}